package com.woniuxy.productservice.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.productdao.model.CoachReserv;
import com.woniuxy.productmodel.dto.CoachReservDto;
import com.woniuxy.productmodel.dto.CoachReservInfoDto;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 冉杰
 * @since 2024-01-15
 */
public interface CoachReservService extends IService<CoachReserv> {

    CoachReservDto addCoachReserv(Integer productId, Integer userId);

    void cancelCoachReserv(Integer coachReservId, Integer userId);

    List<CoachReservDto> findCoachReservByUser(Integer userId);

    List<CoachReservDto> findCoachReservByCoach(Integer coachId);

    void refuseCoachReserv(String message,Integer coachReservId, Integer coachId);

    void agreeCoachReserv(Integer coachReservId, Integer coachId);

    CoachReservInfoDto findCoachReservById(Integer coachReservId);
}
